package com.ls.pattern.proxy.staticproxy;

import com.ls.pattern.proxy.model.IPerson;

/**
 * 静态代理类，老张，张三的父亲
 *
 * @author 挥之以墨
 */
public class ZhangLaosan implements IPerson {

    private IPerson iPerson;

    public ZhangLaosan(IPerson iPerson) {
        this.iPerson = iPerson;
    }

    @Override
    public void findLove() {
        before();
        iPerson.findLove();
        after();
    }

    private void after() {
        System.out.println("已经找到符合条件的妹纸");
    }

    private void before() {
        System.out.println("有什么要求？");
    }
}
